package exception;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author Administrator
 * @Description
 * @date 2022/5/5 15:42
 **/
public class AutoDinallyDemo {
    public static void main(String[] args) {
        try (
                FileOutputStream fos = new FileOutputStream("pw.txt");
                ){
            fos.write(1);
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
